package service.exception;

public class LoanException extends Exception {

    /**
     * 
     */
    private static final long serialVersionUID = -6848510651130862976L;

    public enum CODE {
        UNKNOWN,
        ERROR_IN_ASSIGNLOANCLASS,
        INVALIDE_ACTOR,
        INVALIDE_LOANAPP,
        INVALID_FUNDING,
        INVALID_ISSUE_DATE,
        AFTER_CUTOFF_TIME,
        INVALID_STATUS,
        INVALID_RECEIVEAMT,
        NO_PAYLIST
    }

    private CODE m_code;

    public LoanException(CODE code) {
        super(code.toString());
        this.m_code = code;
    }

    public LoanException(CODE code, Exception e) {
        super(e);
        this.m_code = code;
    }

    public CODE getM_code() {
        return m_code;
    }

}
